//
//  AppDelegate.swift
//  微博222
//
//  Created by jessica on 15/11/8.
//  Copyright © 2015年 jessica. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        
        
//        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()
        window?.makeKeyAndVisible()
       window?.rootViewController = MainViewController()
        
        //设置一个颜色控制上面的navigation的按钮,跟下面的tabbar的按钮
        
        setThemeColor()
        return true
    }

    private func setThemeColor(){
    
    UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
    }
 }

